@extends('layouts.auth')
@push('morecss')
    <link href="//cdn.tudouyu.cn/AdminInspinia/css/plugins/iCheck/custom.css" rel="stylesheet">
@endpush
@push('morescript')
    <!-- iCheck -->
    <script src="//cdn.tudouyu.cn/AdminInspinia/js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function(){
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>
@endpush
@section('content')
    <div class="loginColumns animated fadeInDown">
        <div class="row">

            <div class="col-md-6">
                <h2 class="font-bold">欢迎来到LW+</h2>

                <p>
                    后端采用laravel的框架，并使用EasyWeChat的微信sdk。
                </p>

                <p>
                    后台采用Inspinia前端界面，漂亮的后端风格，无需为后台界面担忧。
                </p>

                <p>
                    已自带常用的微信功能，有laravel基础及php知识程序员可按需开发。
                </p>

                <p>
                    如果喜欢可以分享给其他人使用，并且默默的点个赞。
                </p>

            </div>
            <div class="col-md-6">
                <div class="ibox-content">
                    <form class="m-t" role="form" method="POST" action="{{ route('login') }}">
                        {{ csrf_field() }}
                        <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                            <input id="email" type="email" class="form-control" placeholder="邮箱" name="email" value="{{ old('email') }}" required autofocus>
                            @if ($errors->has('email'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('email') }}</strong>
                                </span>
                            @endif
                        </div>
                        <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                            <input id="password" type="password" class="form-control" placeholder="密码" name="password" required>
                            @if ($errors->has('password'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('password') }}</strong>
                                </span>
                            @endif
                        </div>
                        <div class="form-group">
                            <div class="checkbox i-checks"><label> <input type="checkbox" name="remember" value="1" {{ old('remember') ? 'checked' : '' }}><i></i> 记住我 </label></div>
                        </div>
                        <button type="submit" class="btn btn-primary block full-width m-b">登录</button>

                        <a href="{{ route('password.request') }}">
                            <small>忘记密码?</small>
                        </a>

                        <p class="text-muted text-center">
                            <small>还没有账号?</small>
                        </p>
                        <a class="btn btn-sm btn-white btn-block" href="{{ route('register') }}">注册一个账号</a>
                    </form>
                    <p class="m-t">
                        <small>Inspinia,一个Bootstrap 3的前端应用框架 &copy; 2014</small>
                    </p>
                </div>
            </div>
        </div>
        <hr/>
        <div class="row">
            <div class="col-md-6">
                Copyright Tudouyu Company
            </div>
            <div class="col-md-6 text-right">
                <small>wx.tudouyu.cn © 2018-2019</small>
            </div>
        </div>
    </div>
@endsection
